import os
import platform
import time


def log(content, package, pid, ty='INFO', process='main'):
    print(f"{time.ctime()} {ty} {pid} --- [ {process} ] {package} \t:{content} ")


def print_banner():
    path = os.path.dirname(os.path.abspath(__file__)).replace("util", '') + "template\\banner.txt"
    system = platform.platform()
    if system.startswith('Windows'):
        os.system(f"type {path}")
    elif system.startswith("Linux") or system.startswith('Mac'):
        os.system(f'cat {path}')


